<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="d" uri="http://dgg.net/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
    <title>人才合同到期预警</title>
    <%@ include file="../../header.jsp" %>
    <style type="text/css">
        .layui-layer-content{
            max-height: 662px;
            margin: 10px;
        }
    </style>
</head>
<body class="body-main">
<div class="titleSearch">
    <d:hasUrlAuth authCode="ZZSC_ZS_SYB">
        <div class="layui-inline">
            <label>所属事业部：</label>
            <div class="layui-input-inline">
                <select class="select-style" name="signOrgName" id="signOrgName">
                </select>
            </div>
        </div>
    </d:hasUrlAuth>
    <div class="layui-inline">
        <label>证书类型：</label>
        <div class="layui-input-inline">
            <select class="select-style" name="certificateTypeTC" id="certificateTypeTC"
                    onchange="loadCertificateType('190px','#certificateTypeTC','${GENERAL_CREDENTIAL}',1,'#certificateSpecialtysTC',0,'#certificateLevelTC')">
                <option value="">请选择</option>
            </select>
        </div>
    </div>
    <div class="layui-inline">
        <label>证书专业：</label>
        <div class="layui-input-inline">
            <select class="select-style" name="certificateSpecialtysTC" id="certificateSpecialtysTC">
                <option value="">请选择</option>
            </select>
        </div>
    </div>
    <div class="layui-inline">
        <label>证书等级：</label>
        <div class="layui-input-inline">
            <select class="select-style" name="certificateLevelTC" id="certificateLevelTC">
                <option value="">请选择</option>
            </select>
        </div>
    </div>
    <div class="layui-inline">
        <label>超期状态：</label>
        <div class="layui-input-inline">
            <select class="select-style" id="overdueStatus">
                <option value="">全部</option>
                <option value="0">超期</option>
                <option value="1">未超期</option>
            </select>
        </div>
    </div>
    <div class="layui-inline">
        <label>持证人电话：</label>
        <div class="layui-input-inline">
            <input type="text" class="input-style win100" id="personalPhone"/>
        </div>
    </div>
    <div class="layui-inline">
        <label>身份证号码：</label>
        <div class="layui-input-inline">
            <input type="text" class="input-style win250" id="personalIdCard"/>
        </div>
    </div>
    <div class="layui-inline">
        <label>关键字：</label>
        <div class="layui-input-inline">
            <input type="text" class="input-style win250" placeholder="持证人/收证商务/证书编号/证书名称" id="keyword"/>
        </div>
    </div>
    <div class="layui-inline">
        <button class="layui-btn layui-btn-mini layui-btn-normal" onclick="search('#myTable','reload')">搜索</button>
        <button class="layui-btn layui-btn-mini layui-btn-primary" onclick="cleanSearch()">清空</button>
        <button class="layui-btn layui-btn-mini layui-btn-primary" onclick="exportExcel()">导出</button>
    </div>
</div>

<d:hasUrlAuth authCode="ZZSC_ZS_PT_GLY">
    <div class="table-conter" id="expireWarningShow">
        &nbsp;&nbsp;&nbsp;预警天数：<span id="expireWarning">${expireWarning}</span>&nbsp;天 <a href="javascript:void(0)"
                                                                                          class="layui-btn layui-btn-mini"
                                                                                          onclick="earlyWarningTime()">预警时间设置</a>
    </div>
</d:hasUrlAuth>
<table id="myTable" class="cell-border crm-table">
</table>

<div style="display: none;">
    <input id="GENERAL_CREDENTIAL" value="${GENERAL_CREDENTIAL}"/>
</div>
<d:hasUrlAuth authCode="ZZSC_ADMIN_EDIT">
    <input type="hidden" name="adminEdit" value="1">
</d:hasUrlAuth>
<!--预警时间设置 start-->
<div class="content-layer layui-layer-wrap" id="earlyWarningTime">
    <div class="text-center">
        证书过期提前 <input type="text" id="warningValue" value="${expireWarning}" autocomplete="off" class="input-style text-center win60"
                      onkeyup="restrictInputLength(this,3)"> 天，预警提示
    </div>
</div>
<%@ include file="../../footer.jsp" %>
<script src="../../../../static/js/zzsc/common/functionalTool.js?v=${version}"></script>
<script src="../../../../static/js/zzsc/common/verificationTool.js?v=${version}"></script>
<script src="../../../../static/js/zzsc/credential/credentailCommon/credentailCommon.js?v=${version}"></script>
<script src="../../../../static/js/zzsc/certificateWarning/talent_contract_warning.js?v=${version}"></script>
<script src="../../../../static/js/zzsc/production/sc_common.js?v=${version}"></script>
<script src="${rootUrl}/static/js/zzsc/credential/generalCertificate/editGeneralCertificate.js?v=${version}"></script>
</body>
</html>
